package com.tbit.uqbike.constant;

import org.bouncycastle.pqc.crypto.newhope.NHOtherInfoGenerator;

import java.util.HashMap;
import java.util.Map;

/**
 * 品牌对接参数配置常量
 *
 * @Author:BUGTian
 * @DATE: 2022/7/13
 */
public class BrandRemoteConfigConstant {
    /**
     * 阿里云人脸识别
     */
    public static final Integer ALIYUN_FACE = 0;
    /**
     * 阿里云实名认证
     */
    public static final Integer ALIYUN_NAMEAUTH = 1;
    /**
     * 阿里云短信
     */
    public static final Integer ALIYUN_SMS = 2;
    /**
     * 阿里云语音寻呼
     */
    public static final Integer ALIYUN_PHONE = 3;
    /**
     * 创蓝云智短信
     */
    public static final Integer CLYZ_SMS = 4;
    /**
     * 创蓝云智实名
     */
    public static final Integer CLYZ_NAMEAUTH = 5;
    /**
     * e证通人脸识别
     */
    public static final Integer EZT_FACE = 6;
    /**
     * 支付类型 1-分账
     */
    public static final Integer ADAPAY_BUTTON = 7;
    /**
     * 品牌余额区域外退款
     */
    public static final Integer WITHDRAW_OUT_AREA = 8;
    /**
     * 品牌是否扣款优先扣除本金
     */
    public static final Integer BRAND_CASH_TYPE = 9;
    /**
     * 汇付充值金额是否全额分账 格式为n=1
     */
    public static final Integer ADAPAY_MONEY_CASH_TYPE = 10;
    /**
     * 分账服务费账号 参数类型为account=TBIT;fee=3(代表分账账号为TBIT,服务费比例为3%)
     */
    public static final Integer ADAPAY_CASH_FUWU_FEE = 11;
    /**
     * 分账提现方式 1自动，0手动
     */
    public static final Integer ADAPAY_CASH_WITHDRAW = 12;
    /**
     * 预留金额
     */
    public static final Integer RESERVE_MONEY = 13;
    /**
     * bms电池
     */
    public static final Integer BMS = 14;
    /**
     * 平台服务费催缴
     */
    public static final Integer RUSH_PAY_FEE = 15;
    /**
     * 文明骑行开关
     */
    public static final Integer BRANDCONSTANT_RULE_RIDE = 16;
    /**
     * 售后联系方式
     */
    public static final Integer AFTER_SALE_CONTACT = 20;

    /**
     * tbit本地服务配置信息
     */
    public static final Integer TBIT_CONFIG = 1104;
    /**
     * 验证码短信发送模板id
     */
    public static final Integer SMS_TEMPLATEID = 1105;

    /**
     * 订单未支付
     */
    public static final Integer ORDER_NOT_PAID = 1107;
    /**
     * 禁止未还车
     */
    public static final Integer STOP_NOT_RETURNED = 1108;
    /**
     * 优惠券到账提醒
     */
    public static final Integer SMS_COUPON_ARRIVAL = 1120;
    /**
     * 订单费用申诉短信发送模板id
     */
    public static final Integer SMS_ORDER_FEE = 1121;

    /**
     * 退款短信发送模板id
     */
    public static final Integer SMS_ORDER_REFUND = 1122;

    /**
     * 敏感操作通知短信发送模板id
     */
    public static final Integer SMS_OPERATION_NOTIFY = 1123;

    /**
     * 管理后台账号免登录配置
     */
    public static final Integer PC_FREE_LOGIN = 2001;

    /**
     * 运维端账号免登录配置
     */
    public static final Integer MAIN_FREE_LOGIN = 2002;

    /**
     * 实名认证提交次数
     */
    public static final Integer REAL_NAME_COUNT = 2003;

    /**
     * 免登录有效时间 configType
     */
    public static final Integer NO_LOGIN_EXPIRY_DAYS = 2005;

    /**
     * 免登录有效时间默认值(单位:天)
     */
    public static final Integer DEFAULT_NO_LOGIN_EXPIRY_DAYS_VALUE = 30;

    /**
     * 骑行年龄上限
     */
    public static final Integer CYCLING_AGE_LIMIT = 3427;

    /**
     * 默认提现类型
     */
    public static final Integer DEFAULT_CASH_TYPE = 3689;

    /**
     * 微信服务商支付开关
     */
    public static final Integer WX_MCH_PAY_SWITCH = 6001;

    /**
     * 免登录有效时间默认值(单位:分钟)
     */
    public static final Integer DEFAULT_NO_LOGIN_EXPIRY_DAYS_VALUE_MINUTE = 43200;

    /**
     * 小程序手动输入借车配置
     */
    public static final Integer CLIENT_MANUAL_INPUT = 9898;

    /**
     * 品牌一键停运配置
     */
    public static final Integer SERVICE_SWITCH = 2008;

    /**
     * 品牌密钥开关
     */
    public static final Integer OPERA_PSW = 12000;

    /**
     * 自动开票开关
     * */
    public static final Integer AUTO_INVOICE_SWITCH = 2009;
    /**
     * 扫码借车配置
     */
    public static final Integer SCAN_BORROW = 2010;
    /**
     * 手机号注册登录
     */
    public static final Integer PHONE_LOGIN = 2011;

    /**
     * 运营区外禁止实名认证开关
     */
    public static final Integer DISABLE_VERIFY_OUTSIDE = 12001;


    /**
     * 虚拟手机号拦截开关
     */
    public static final Integer BLOCK_VIRTUAL_PHONE_SWITCH = 4101;
    /**三方广告显示配置-----骑行中推荐页*/
    public static final Integer RIDING_PAGE_ADVERTISE = 95273;
    /**三方广告显示配置-----订单结束详情页*/
    public static final Integer ORDER_END_PAGE_ADVERTISE = 95274;
    /**自行车每公里减少的碳排放量*/
    public static final Integer BIKE_CARBON = 2012;
    /**自行车每公里消耗的卡路里*/
    public static final Integer BIKE_CALORIE = 2013;
    /**电动车每公里减少的碳排放量*/
    public static final Integer ELECTRIC_BIKE_CARBON = 2014;
    /**电动车每公里消耗的卡路里*/
    public static final Integer ELECTRIC_BIKE_CALORIE = 2015;
    /**开具发票功能*/
    public static final Integer INVOICE_SWITCH = 3426;
    /**同一身份证绑定手机号个数*/
    public static final Integer SAME_IDNO_BOUND_PHONE_NUM = 19;

    //品牌的默认配置
    public static final Map<Integer,String> DEFAULT_BRAND_REMOTE_CONFIG_MAP = new HashMap<Integer,String>(){{
        put(WITHDRAW_OUT_AREA,"wotrSwitch=0");//区域外体现
        put(INVOICE_SWITCH,"0");//开发票开关
        put(BRAND_CASH_TYPE,"firstSubtract=1");
        put(SAME_IDNO_BOUND_PHONE_NUM,"phoneNumber=3");//同一身份证绑定手机号个数
        put(REAL_NAME_COUNT,"3");
        put(WX_MCH_PAY_SWITCH,"1");
        put(CLIENT_MANUAL_INPUT,"manualInput=0");
        put(NO_LOGIN_EXPIRY_DAYS,"21600");
        put(PC_FREE_LOGIN,"freeLoginMode=0&effectiveDay=21600");
        put(MAIN_FREE_LOGIN,"freeLoginMode=0&effectiveDay=21600");
        put(SERVICE_SWITCH,"serviceSwitch=1");
        put(PHONE_LOGIN,"phoneLogin=1");
        put(BLOCK_VIRTUAL_PHONE_SWITCH,"blockVirtualPhoneSwitch=1");
        put(RIDING_PAGE_ADVERTISE,"ridingAdvertise=1");
        put(ORDER_END_PAGE_ADVERTISE,"orderEndAdvertise=1");
        put(SCAN_BORROW,"scanBorrow=1");
        put(DISABLE_VERIFY_OUTSIDE,"disableVerifyOutsideOps=0");
    }};
}
